package com.thf.dao;

import com.thf.model.Permission;
import com.thf.model.UserModel;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface AuthDao {

    UserModel login(@Param("username") String username, @Param("password") String password);

    List<UserModel> getUserByName(String name);

    List<Permission> getPermissionsByUserId(Integer userId);

    Permission getPermissionsByUri(String uri);
}